const HMTT_CHANNELS = 'hmtt80-channels'
// 封装保存到本地存储
export const saveChannels = (list) => {

    localStorage.setItem(HMTT_CHANNELS, JSON.stringify(list) )
}

// 封装获取本地存储的数据
export const getChannels = () => {

    return JSON.parse(localStorage.getItem(HMTT_CHANNELS))
}

// 封装删除本地存储的数据
export const removeChannels = () => {

   localStorage.removeItem(HMTT_CHANNELS)
}